package com.bbzn.device.client.dao.nbdatail;

import com.bbzn.device.client.dataobject.NbDetail;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface NbDetailMapper {
    /**
     * delete by primary key
     * @param imei primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(String imei);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(NbDetail record);

    int insertOrUpdate(NbDetail record);

    int insertOrUpdateSelective(NbDetail record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(NbDetail record);

    /**
     * select by primary key
     * @param imei primary key
     * @return object by primary key
     */
    NbDetail selectByPrimaryKey(String imei);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(NbDetail record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(NbDetail record);

    List<NbDetail> findByAll(NbDetail nbDetail);

    int updateBatch(List<NbDetail> list);

    int batchInsert(@Param("list") List<NbDetail> list);
}